//
//  NumberValueNode.m
//  DataCollector
//
//  Created by jiro on 12/06/29.
//  Copyright 2012 jiro music. All rights reserved.
//

#import "NumberValueNode.h"

NumberValueNode::NumberValueNode( double value )
{
	numberValue = value;
}

NSString* NumberValueNode::query() const
{
	NSString* s;
	if ( numberValue == int( numberValue ) )
	{
		s = [ NSString stringWithFormat: @"%d", (int) numberValue ];
	}
	else
	{
		s = [ NSString stringWithFormat: @"%f", numberValue ];
	}
	return s;

}
